<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/4/2
  Time: 11:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>杨辉三角</title>
</head>
<body>
    <%
        //假设杨辉三角就5行
        int row = 100;
        for (int i = 1; i <= row; i++) {
            //输出空格
            for ( int j = 0 ; j <= row-i ; j++){
                %>
                &nbsp;
                <%
            }
            //输出*
            for ( int j = 0 ; j <= i ; j++){
                %>
                <%="*"%>&nbsp;
                <%
            }
            %>
            <br/>
            <%
        }
    %>
</body>
</html>
